package com.dckj.auto.common.utils.userauto;


import java.util.List;

public class MenuTree {
    private String id;//所有一级菜单、二级菜单都共有一个相同的属性，那就是name

    private String pid;
    private String title;
    private String icon;
    private String url;
    private boolean spread;
    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    private List<MenuTree> children;

    public List<MenuTree> getChildren() {
        return children;
    }

    public void setChildren(List<MenuTree> children) {
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

//    @Override
//    public String toString() {
//        return "{id=" + id + ", title=" + title + ", pid=" + pid + ", icon=" + icon + ", url=" + url + ", spread=" + spread + ", children=" + children.toString() + "}";
//    }


}
